/**
 * 
 */
package com.p2p.base.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import com.p2p.base.model.LoginLog;

/**
 * @author ruiqi
 *
 */
public interface LoginLogDao {

	@Insert("insert into p2p_login_log(uid,ip,type)values(#{uid},#{ip},#{type})")
	public void create(LoginLog loginLog);
	
	@Select("select uid,ip,type,time from p2p_login_log where uid=#{uid} order time desc")
	List<LoginLog> queryByUid(String uid);
}
